home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / a_man / cat1 / clri.z / clri
Encoding:
Text File  |  1998-10-20  |  2.2 KB  |  67 lines

  1.  
  2.  
  3.  
  4. ccccllllrrrriiii((((1111MMMM))))                                                              ccccllllrrrriiii((((1111MMMM))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      clri - clear EFS inode
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ccccllllrrrriiii special i-number ...
  13.  
  14. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.      _c_l_r_i writes nulls on the inode table entry for _i-_n_u_m_b_e_r.  This
  16.      effectively eliminates the inode at that address.  _s_p_e_c_i_a_l is the device
  17.      name on which an EFS filesystem has been defined.  After _c_l_r_i is
  18.      executed, any blocks in the affected file shows up as ``not accounted
  19.      for'' when _f_s_c_k(1M) is run against the filesystem.  The inode can be
  20.      allocated to a new file.
  21.  
  22.      Read and write permission is required on the specified _s_p_e_c_i_a_l device.
  23.  
  24.      This command is used to remove a file that appears in no directory, that
  25.      is, to get rid of a file that cannot be removed with the _r_m command.
  26.  
  27. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  28.      findblk(1M), fsck(1M), fsdb(1M), ncheck(1M), rm(1), efs(4).
  29.  
  30. WWWWAAAARRRRNNNNIIIINNNNGGGGSSSS
  31.      If the file is open for writing, _c_l_r_i does not work.  The filesystem
  32.      containing the file should not be mounted.
  33.  
  34.      If _c_l_r_i is used on the inode number of a file that does appear in a
  35.      directory, it is imperative to remove the entry in the directory at once,
  36.      since the inode can be allocated to a new file.  The old directory entry,
  37.      if not removed, continues to point to the same file.  This sounds like a
  38.      link but does not work like one.  Removing the old entry destroys the new
  39.      file.
  40.  
  41.      There is no equivalent command for XFS filesystems.  If _c_l_r_i is applied
  42.      to an XFS filesystem, the messages:
  43.           bad superblock magic number in /dev/rdsk/dksxxxxxxxxxxxx
  44.           clri: /dev/dsk/dksxxxxxxxxxxxx is not an extent filesystem
  45.      will appear.
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.